package com.aspose.cells;

class zvl {
   private int a;
   private zbtc b;
   private com.aspose.cells.b.a.b.a.zg c = null;
   private zacq d;
   private zvn e;

   public zvl(zvn var1) {
      this.e = var1;
      this.b = new zbtc();
   }

   zbtc a() {
      if (this.b == null) {
         this.b = new zbtc();
      }

      return this.b;
   }

   zacq b() {
      if (this.d == null) {
         this.d = new zacq();
      }

      return this.d;
   }

   int c() {
      return this.a;
   }

   void a(int var1) {
      this.a = var1;
   }

   void a(Color var1, Color var2, int var3) {
      this.a = 2;
      this.c = new com.aspose.cells.b.a.b.a.zg(var3, var1, var2);
   }

   public com.aspose.cells.b.a.b.zc a(com.aspose.cells.b.a.b.zq var1) {
      com.aspose.cells.b.a.b.a.ze var2 = new com.aspose.cells.b.a.b.a.ze();
      var2.b(var1);
      return this.a(var2, (com.aspose.cells.b.a.b.zm)null, false, 1.0F);
   }

   public com.aspose.cells.b.a.b.zc a(com.aspose.cells.b.a.b.a.ze var1, com.aspose.cells.b.a.b.zm var2, boolean var3, float var4) {
      switch(this.a) {
      case 0:
         return this.b().a(var1, var2, var3, var4);
      case 1:
         return this.a().a(var1, var4);
      case 2:
         Color var5 = Color.fromArgb(this.c.c().getA() & 255, (int)((float)(this.c.c().getR() & 255) * var4), (int)((float)(this.c.c().getG() & 255) * var4), (int)((float)(this.c.c().getB() & 255) * var4));
         Color var6 = Color.fromArgb(this.c.b().getA() & 255, (int)((float)(this.c.b().getR() & 255) * var4), (int)((float)(this.c.b().getG() & 255) * var4), (int)((float)(this.c.b().getB() & 255) * var4));
         return new com.aspose.cells.b.a.b.a.zg(this.c.d(), var5, var6);
      default:
         return new com.aspose.cells.b.a.b.zu(Color.getWhite());
      }
   }
}
